package com.psl.action.frameAction;

import org.apache.struts2.ServletActionContext;

import javax.servlet.http.HttpSession;

public class logout {
    public String execute() {
        HttpSession session = ServletActionContext.getRequest().getSession();
        session.removeAttribute("user");
        session.invalidate();
        return "success";
    }
}
